package com.bifrost.repository;

import com.bifrost.constant.MerchantConfigurationType;
import com.bifrost.entity.MerchantConfigurationAlias;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author Lee
 * Create Class on 2018/9/6
 * @com.bifrost.repository
 * @wechat-mall
 */
public interface ConfigurationAliasRepository extends JpaRepository<MerchantConfigurationAlias,Long>{

    List<MerchantConfigurationAlias> findAllByVisibleIsTrue();

    MerchantConfigurationAlias findFirstByMerchantConfigurationType(MerchantConfigurationType type);
}
